<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>京东左侧导航</title>
    <style>
        body{
            /* 设置网页背景  */
            background-color: #fba;
        }
        .left_nav{
            /* 宽度 */
            width: 190px;
            /* 高度 */
            height: 470px;
            /* 设置内边距 */
            padding: 10px 0;
            /* 背景色 */
            background-color: #fff;
            /* 居中 上边距50px */
            margin: 50px auto;
        }
        /* 设置菜单的item */
        .left_nav .item{
            /* 设置文字的行距 */
            height: 25px;
            /* 让文字在父元素中垂直居中， 只需将浮元子的line-height 设置和父元素height一样的高度 */
            line-height: 25px;
            /* 设置超链接的内边距 让文字向右移动 */
            /* 不指定宽度 不会溢出   制定了 就溢出 */
            padding-left: 18px;
            font-size: 12px;
        }
        /* 为item设置鼠标移入状态 */
        .item:hover{
            background-color: #d9d9d9;
        }
        .item a:hover{
            color: #c81623;
        }
        .item a{
            /* 设置字体 */
            font-size: 14px;
            /* 设置颜色 */
            color: #333;
            /* 去除下划线 */
            text-decoration: none;
        }
        span{
            margin: 2px;
        }
    </style>
</head>
<body>
    
    <!-- 创建外部容器  nav(div) div(div) ul(li) -->
    <nav class="left_nav">
        <div class="item">
            <a href="#">家用电器</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>
        <div class="item">
            <a href="#">手机</a><span>/</span><a href="#">运营商</a><span>/</span><a href="#">数码</a>
        </div>

    </nav>

</body>
</html>